Optimal. Leaf size=24 \[ x (a B+A b)+a A \log (x)+\frac {1}{2} b B x^2 \]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 24, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.071, Rules used = {76} \begin {gather*} x (a B+A b)+a A \log (x)+\frac {1}{2} b B x^2 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 76
Rubi steps
\begin {align*} \int \frac {(a+b x) (A+B x)}{x} \, dx &=\int \left (A b+a B+\frac {a A}{x}+b B x\right ) \, dx\\ &=(A b+a B) x+\frac {1}{2} b B x^2+a A \log (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 24, normalized size = 1.00 \begin {gather*} x (a B+A b)+a A \log (x)+\frac {1}{2} b B x^2 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {(a+b x) (A+B x)}{x} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.24, size = 22, normalized size = 0.92 \begin {gather*} \frac {1}{2} \, B b x^{2} + A a \log \relax (x) + {\left (B a + A b\right )} x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.28, size = 22, normalized size = 0.92 \begin {gather*} \frac {1}{2} \, B b x^{2} + B a x + A b x + A a \log \left ({\left | x \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 22, normalized size = 0.92 \begin {gather*} \frac {B b \,x^{2}}{2}+A a \ln \relax (x )+A b x +B a x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.10, size = 22, normalized size = 0.92 \begin {gather*} \frac {1}{2} \, B b x^{2} + A a \log \relax (x) + {\left (B a + A b\right )} x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.29, size = 22, normalized size = 0.92 \begin {gather*} x\,\left (A\,b+B\,a\right )+\frac {B\,b\,x^2}{2}+A\,a\,\ln \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.14, size = 22, normalized size = 0.92 \begin {gather*} A a \log {\relax (x )} + \frac {B b x^{2}}{2} + x \left (A b + B a\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________